package com.situ.student.dao;

import java.util.List;
import java.util.Map;

import com.situ.student.entity.Banji;

public interface IBanjiDao {

	//int getTotalCount = 0;
	//所有班级集合
	public abstract List<Banji> list();
	//根据id删除
	public abstract int deleteById(Integer id);
	//插入数据
	public abstract int insert(Banji banji);
	//修改数据前展示数据
	public abstract Banji findById(Integer id);
	//修改
	public abstract int update(Banji banji);
	//批量删除
	public abstract int deleteAll(String[] selectIds);
	//总的记录数
	public abstract int getTotalCount();
	//当前页的数据
	public abstract List<Map<String, Object>> pageList(int offset, int pageSize);
	//添加班级避免重复
	public abstract int selectCountByName(String name);

}
